//
//  UserFollowCell.m
//  XPhoto
//
//  Created by baboy on 2019/8/9.
//  Copyright © 2019 baboy. All rights reserved.
//

#import "UserFollowCell.h"
#import "NSDate+x.h"
#import "ThemeFactory.h"
#import "UIButton+x.h"
#import <AFNetworking/UIButton+AFNetworking.h>

@implementation UserFollowCell

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setUser:(User *)user{
    _user = user;
    [self.avatarButton setImageForState:UIControlStateNormal withURL:[NSURL URLWithString:user.avatarThumb]];
    self.nicknameLabel.text = user.nickname;
    self.introLabel.text = user.intro;
}
@end
